/**
 * @author cmtlyt
 * @version v1.0
 */

package chapter02;

/*
 计算机中不同进制的使用
*/

public class Binary {
 public static void main(String[] args) {
  // 定义不同进制的数
  int num1 = 0b110;
  int num2 = 110;
  int num3 = 0127;
  int num4 = 0x110a;
  System.out.printf("num1 = %d\nnum2 = %d\nnum3 = %d\nnum4 = %d\n", num1, num2, num3, num4);
 }
}
